<%@page import="org.xiaom.butler.bean.app.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%!AppVersion bean;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理</title>
</head>
<body>
	<div>
		<a href="${base }">首页</a>-><a>app管理</a>
	</div>
	<br/>
	<div>
		<a style="color: red;text-decoration: none;" >${platform}</a>
		<br/> 
	</div> 
	<br/>
	<div>
		<a href="./add.jsp?platform=${platform}">添加新版本</a>
	</div>
	<br />
	<table width="700" height="101" border="1">
		<tr>
			<th width="120px" >版本</th>
			<th width="120px" >描述</th>
			<th width="120px" >备注</th>
			<th width="120px" >操作</th>
		</tr>
		<%
			List<AppVersion> list =(List<AppVersion>) request.getAttribute("list");
			for (int i = 0; i < list.size(); i++) {
				bean = list.get(i);
		%>
		<tr>
			<td><a ><%=bean.getVersion()%></a></td>
			<td><a ><%=bean.getDescribe()%></a></td>
			<td><a ><%=bean.getRemark()%></a></td>
			<td>
				<div style="text-align: center;">
					<% if(i!=0){ %>
						<a href="./delete.do?id=<%=bean.getId()%>">删除 | </a> 
					<%}%><a href="download.jsp?id=<%=bean.getId()%>" target="_blank">下载</a>
				</div>
			</td>
		</tr>
		<%
			}
		%>
	</table>
</body>
<script>
function downLoad(id){
	window.open("http://www.baidu.com");
}
</script>
</html>